package smb.domain;

import lombok.Data;

import javax.persistence.*;
import java.util.List;

@Entity
@Data
public class Section {
    @Id
    private String id;
    private int size;
    private String semester;
    @ManyToOne
    @JoinColumn(name = "cou_id")
    private Course course;
    @ManyToOne
    @JoinColumn(name = "tea_id")
    private Teacher teacher;
    @OneToMany(mappedBy = "section")
    private List<Score> scores;
}
